public class Dog {
    public int year;
    public int month;
    public int day;
    public String name;
    public String color;
    public void bark(){
        System.out.println(name+"汪汪汪!");
    }
    public void wag(){
        System.out.println(name+"摇尾巴");
    }
    public void date(int y,int m,int d){
        this.year=y;
        this.month=m;
        this.day=d;
    }
    public void printDate(){
        System.out.println("出生于"+year+"年"+month+"月"+day+"日");
    }
}
